package com.ruofeng.app.kotlin.second.wechat.starter

import org.junit.Test

/**
 * Created by 邱鹏 on 2017/6/10.
 */
class UuidServiceTest {
    fun getUuid():String {
        var result:String?=null
        result="xxxxxxxxxxxxxxx"
        return result;
    }
    @Test
    fun testGetUuid() {
        print(getUuid())
    }

    @Test
    fun testList(){
        //只读 list
        val list = listOf("a", "b", "c")
        println("测试只读列表数据：$list[1]")
    }
    @Test
    fun testMap(){
        //访问 map
        val map = mapOf("a" to "测试效果如何", "b" to 2, "c" to listOf("手臂",12,true))
        //println(map["key"])
        println(map.get("a").toString())
        println(map.get("c").toString())
    }
}
fun main(args: Array<String>) {
    //print(UuidServiceTest().getUuid())
    println(UuidServiceTest().testMap())
}